<div class="pageHeader">
  <form onsubmit="return navTabSearch(this);" action="#{$smarty.const.ACT}#/User/user_show/" method="post">
    <div class="searchBar">
      <table class="searchContent">
        <tr>
          <td><select class="combox" name="searchKeyword">
              <option value="name">联系人姓名</option>
              <option value="postion">职务</option>
              <option value="mobile">电话</option>
              <option value="zipcode">邮编</option>
              <option value="address">联系地址</option>
              <option value="intro">介绍</option>
            </select>
          </td>
          <td><input type="text" name="searchValue" />
          </td>
          <td> 建档日期：
            <input type="text" class="date" readonly="true" />
          </td>
          <td><ul>
              <li>
                <div class="buttonActive">
                  <div class="buttonContent">
                    <button type="submit">检索</button>
                  </div>
                </div>
              </li>
            </ul></td>
        </tr>
      </table>
	   <div class="subBar"></div>
    </div>
	
  </form>
</div>
<div class="pageContent">
  <div class="panelBar">
    <ul class="toolBar">
      <li><a class="add" href="#{$smarty.const.ACT}#/User/user_add/" target="navTab" rel="user_add"><span>添加</span></a></li>
      <li><a class="delete" href="#{$smarty.const.ACT}#/User/user_del/" postType="string" title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" ><span>批量删除</span></a></li>
      <li><a class="edit" href="#{$smarty.const.ACT}#/User/user_modify/id/{sid_user}/" target="navTab" rel="user_modify"><span>修改</span></a></li>
      <li class="line">line</li>
      <li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出</span></a></li>
    </ul>
  </div>
  <table class="table" width="100%" layoutH="138">
    <thead>
      <tr>
        <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
        <th width="120">帐号</th>
        <th width="120">姓名</th>
        <th width="40">性别</th>
        <th width="120">手机</th>
        <th width="120">QQ</th>
        <th width="150">邮箱</th>
        <th width="120">部门</th>
        <th width="120">职务</th>
        <th width="120">权限</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
    
    #{foreach from=$list key=k item=v}#
    <tr target="sid_user" rel="#{$v.id}#">
      <td><input name="ids" value="#{$v.id}#" type="checkbox"></td>
      <td>#{$v.account}#</td>
      <td>#{$v.name}#</td>
      <td>#{ if $v.gender eq 1 }# 男 #{else}# 女 #{/if}# </td>
      <td>#{$v.mobile}#</td>
      <td>#{$v.qicq}#</td>
      <td>#{$v.email}#</td>
      <td>#{$dept[$v.deptID]}#</td>
      <td>#{$position[$v.positionID]}#</td>
      <td>#{$role[$v.roleID]}#</td>
      <td><a>发送短信</a> <a>发送邮件</a> </td>
    </tr>
    #{/foreach}#
    </tbody>
    
  </table>
  <div class="panelBar">
    <form id="pagerForm" method="post" action="#{$smarty.const.ACT}#/User/user_show/">
      <input type="hidden" name="pageNum" value="1" />
      <input type="hidden" name="numPerPage" value="#{$numPerPage}#" />
      <input type="hidden" name="orderField" value="${param.orderField}" />
    </form>
    <div class="pages"> <span>显示</span>
      <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
        <option value="20">20</option>
        <option value="50">50</option>
        <option value="100">100</option>
        <option value="200">200</option>
      </select>
      <span>条，共#{$totalCount}#条</span> </div>
    <div class="pagination" targetType="navTab" totalCount="#{$totalCount}#" numPerPage="#{$numPerPage}#" pageNumShown="10" currentPage="#{$currentPage}#"></div>
  </div>
</div>